package com.ws.service.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ws.bean.MaintenanceRecord;
import com.ws.bean.ReturnCheck;
import com.ws.dao.MaintenanceRecordDao;
import com.ws.service.MaintenanceRecordService;
import com.ws.util.Page;
@Service
public class MaintenanceRecordServiceImp implements MaintenanceRecordService {
	@Autowired
	MaintenanceRecordDao dao;
	@Override
	public List<MaintenanceRecord> getRecords(MaintenanceRecord record, Page page) {
		return dao.getRecords(record,page);
	}
	@Override
	public int getCount(MaintenanceRecord record) {
		return dao.getCount(record);
	}
	@Override
	public int delRecord(Integer id) {
		return dao.delRecord(id);
	}
	@Override
	public int addRecord(MaintenanceRecord record) {
		return dao.addRecord(record);
	}
	@Override
	public int editRecord(MaintenanceRecord record) {
		return dao.editRecord(record);
		
	}
	@Override
	public List<ReturnCheck> getCheck() {
		return dao.getCheck();
	}
	@Override
	public List<ReturnCheck> getStaff() {
		return dao.getStaff();
	}

}
